package xin.yangshuai.fastjson01.hello;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * User
 *
 * @author shuai
 * @date 2023/4/24
 */
public class User {

    private int id;

    private String name;

    private int age;

    private String sex;

    private String email;

    private String password;

    private Date birthday;

    @JSONField(name = "company_name", alternateNames = "companyName")
//    @JSONField(name = "company_name")
    private String companyName;

    @JSONField(name = "department_name", alternateNames = "departmentName")
//    @JSONField(name = "department_name")
    private String departmentName;

    @JSONField(name = "post_name", alternateNames = "postName")
//    @JSONField(name = "post_name")
    private String postName;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }


}
